/*
 * Copyright (C) 2012 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";

/*-- element styles --*/
dl {
  overflow: hidden;
  padding: 4px 12px;
}

dt {
  clear: left;
  float: left;
  font-weight: bold;
  margin-right: 8px;

  &:after { content: ":"; }
}

dd {
  float: left;
}

.h6 {
  font-weight: bold;
}

/*-- message list styles --*/
.messages {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.message {
  margin-bottom: 16px;

  header .label {
    float: right;
    position: relative;
    top: 1px;
  }
}

.ui-tabs {
  margin: 15px;
}

.message-body {
  border: 0px;
  clear: both;
  overflow: auto;
  border: 0px;
  background-color: white;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.message-html-body {
  border: 0px;
  clear: both;
  overflow: auto;
  width: 99%;
  height: 250px;
}

table.grid tr:first-child td {
  border-top: none;
}

.td-label {
  div {
    color: #888888;
    padding-right: 10px;
    text-align: right;
  }
}

/*-- workflow state labels --*/
.label {
  background-color: #999;
  border-radius: 3px;
  color: white;
  @include fontSize(12px);
  font-weight: bold;
  line-height: 14px;
  padding: 1px 4px 2px;
  text-shadow: 0 -1px 0 rgba(black, .25);
  vertical-align: baseline;
  white-space: nowrap;

  &.label-sent, &.label-dashboard {
    background-color: $successText;
  }

  &.label-created, &.label-staged, &.label-sending {
    background-color: #3A87AD;
  }

  &.label-cancelled, &.label-bounced {
    background-color: #B94A48;
  }

  &.label-closed {
    background-color: #333;
  }
}

/*-- action buttons --*/
.list-view .actions {
  overflow: hidden;
  padding: 4px 12px;

  li { display: inline; float: left; margin: 0 16px 0 0; }
}

a.icon-off {
  font-size: 11px;
  &:before {
    font-size: 11px;
  }
}
